package com.example.crawler.model;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author pq
 * @date 2022/10/27 23:50
 * @description 网页链接黑名单
 * @modified
 **/
@Data
@Entity
@DynamicUpdate
@DynamicInsert
@Table(name="crawler001_page_link_black")
public class PageLinkBlack {
    /**
     * 主键
     */
    @Id
    @GenericGenerator(name="uuid",strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "uuid")
    private String id;

    /**
     * url
     */
    @Column(name = "url",nullable = false)
    private String url;
}
